<div class="row toolbar">
  <div class="col-md-6">
    <span class="toolbar-header">
      <%= t :registration_method_list %>
    </span>
  </div>
  <div class="col-md-6 text-right">
    <ul class="toolbar-nav">
      <li><%= link_to feather_icon('circle-plus'), new_patient_path %></li>
      <li><%= link_to feather_icon('trash'), new_patient_path %></li>
      <li><%= link_to feather_icon('file-add'), new_patient_path %></li>
    </ul>
    <input type="text" placeholder="Search" class="search-box" />
  </div>
</div>

<table class="table table-striped">
  <thead>
    <tr>
      <th>Label</th>
      <th><%= t :create_at %></th>
      <th><%= t :updated_at %></th>
      <th><%= t :created_by %></th>
      <th><%= t :updated_by %></th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @registration_methods.each do |registration_method| %>
      <tr>
        <td><%= registration_method.label %></td>
        <td><%= registration_method.created_at %></td>
        <td><%= registration_method.updated_at %></td>
        <td><%= registration_method.created_by %></td>
        <td><%= registration_method.updated_by %></td>
        <td><%= link_to "#{t(:show)}", registration_method %></td>
        <td><%= link_to "#{t(:edit)}", edit_registration_method_path(registration_method) %></td>
        <td><%= link_to "#{t(:destroy)}", registration_method, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to "#{t(:new_registration_method)}", new_registration_method_path %>
